package com.tiger.cloud.model.crm;

import java.sql.Timestamp;

import org.apache.commons.lang3.builder.ToStringBuilder;

import com.tiger.cloud.common.mybatis.TigerBaseEntity;
import com.tiger.cloud.enums.AppSmsSendStatus;

import io.swagger.annotations.ApiModelProperty;
/**
 * 
 * app_sms-短信
 *
 */
public class AppSms extends TigerBaseEntity{

	private static final long serialVersionUID = 1L;
    
	/**
	 * 
	 */
	@ApiModelProperty(value = "用户ID")
    private Long userId;
	/**
	 * 手机号
	 */
	@ApiModelProperty(value = "手机号",example = "xxxxxxxxxx")
    private String phone;
	/**
	 * 验证码
	 */
	private String code;
	/**
	 * 发送的消息
	 */
	@ApiModelProperty(value = "发送的消息",example = "尊敬的用户您好,验证码是【123456】")
    private String message;
	/**
	 * 分类, 1:验证码,2:审核短信,3:审核成功
	 */
    private Integer type;
	/**
	 * 
	 */
    @ApiModelProperty(hidden=true)
    private Timestamp createTime;
	/**
	 * 
	 */
    @ApiModelProperty(hidden=true)
    private Timestamp activeTime;
	/**
	 * 1:成功,2:失败
	 */
    private AppSmsSendStatus sendStatus;
    
    public AppSms(){
    
    }
    
    public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public Long getUserId() {
        return this.userId;
    }
    
    public void setUserId(Long userId) {
        this.userId = userId;
    }
    public String getPhone() {
        return this.phone;
    }
    
    public void setPhone(String phone) {
        this.phone = phone;
    }
    public String getMessage() {
        return this.message;
    }
    
    public void setMessage(String message) {
        this.message = message;
    }
    public Integer getType() {
        return this.type;
    }
    
    public void setType(Integer type) {
        this.type = type;
    }
    public Timestamp getCreateTime() {
        return this.createTime;
    }
    
    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }
    public Timestamp getActiveTime() {
        return this.activeTime;
    }
    
    public void setActiveTime(Timestamp activeTime) {
        this.activeTime = activeTime;
    }
    public AppSmsSendStatus getSendStatus() {
        return this.sendStatus;
    }
    
    public void setSendStatus(AppSmsSendStatus sendStatus) {
        this.sendStatus = sendStatus;
    }
    
	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}
}